package com.payment.system.domain;

import com.payment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商城订单商品表 sys_shopping_order_product
 * 
 * @author payment
 * @date 2019-01-22
 */
public class ShoppingOrderProduct extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private String id;
	/** 订单id */
	private String orderId;
	private String orderNumber;// 订单编号
	/** 商品id */
	private String productId;
	/** 商品名称 */
	private String name;
	/** 商品图片 */
	private String picImg;
	/** 商品价格 */
	private BigDecimal price;
	/** 商品积分 */
	private Integer score;
	/** 商品购买数量 */
	private Integer buyNumber;
	/** 商品总积分 */
	private Integer productScore;
	/** 商品总金额 */
	private BigDecimal productAmount;
	//快递费
	private BigDecimal shipmentAmount;
	/** 创建时间 */
	private Date createTime;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setOrderId(String orderId) 
	{
		this.orderId = orderId;
	}

	public String getOrderId() 
	{
		return orderId;
	}
	public void setProductId(String productId) 
	{
		this.productId = productId;
	}

	public String getProductId() 
	{
		return productId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setPicImg(String picImg) 
	{
		this.picImg = picImg;
	}

	public String getPicImg() 
	{
		return picImg;
	}
	public void setPrice(BigDecimal price) 
	{
		this.price = price;
	}

	public BigDecimal getPrice() 
	{
		return price;
	}
	public void setScore(Integer score) 
	{
		this.score = score;
	}

	public Integer getScore() 
	{
		return score;
	}
	public void setBuyNumber(Integer buyNumber) 
	{
		this.buyNumber = buyNumber;
	}

	public Integer getBuyNumber() 
	{
		return buyNumber;
	}
	public void setProductScore(Integer productScore) 
	{
		this.productScore = productScore;
	}

	public Integer getProductScore() 
	{
		return productScore;
	}
	public void setProductAmount(BigDecimal productAmount) 
	{
		this.productAmount = productAmount;
	}

	public BigDecimal getProductAmount() 
	{
		return productAmount;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("name", getName())
            .append("picImg", getPicImg())
            .append("price", getPrice())
            .append("score", getScore())
            .append("buyNumber", getBuyNumber())
            .append("productScore", getProductScore())
            .append("productAmount", getProductAmount())
            .append("createTime", getCreateTime())
            .toString();
    }

	public BigDecimal getShipmentAmount() {
		return shipmentAmount;
	}

	public void setShipmentAmount(BigDecimal shipmentAmount) {
		this.shipmentAmount = shipmentAmount;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
}
